/*
 * solution.h
 *
 *  Created on: Apr 19, 2009
 *      Author: thaison
 */
#include "mpi.h"
#ifndef SOLUTION_H_
#define SOLUTION_H_
#define MAX_TOWNS 5000

typedef struct {
	long int tour[MAX_TOWNS];
	float cost;
} Solution;
extern MPI_Datatype MPI_Solution; // global declaration
extern MPI_Op MPI_SolutionMin;
extern Solution best_solution;
void solution_min(void *_s1, void *_s2, int *N, MPI_Datatype *dt);
void construct_datatypes(void);
#endif /* SOLUTION_H_ */
